body {
    text-align: center;
}

#container {
    display: flex;
    flex-direction: column;
}

#topInfo {
    display: inline-block;
    flex: 1;
    align-self: center;
    width: 300px;
    padding: 10px 20px;
    background: #0f0f0f;
    color: rgb(141, 6, 243);
    border-radius: 5px;
}

#changeBoard {
    display: none;
    flex: 1;
    align-self: flex-start;
}

#panel {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
}

#left_panel, #right_panel {
    position: relative;
    flex: 1;
}

#mid_panel {
    position: relative;
    flex: 0 0 36%;
    height: 500px;
    z-index: 1;
}

#match_btn {
    width: 200px;
}

.gameCanvas {
    position: absolute;
    display: none;
}

#boardCanvas {
    box-shadow: -2px -2px 2px #efefef, 5px 5px 5px #b9b9b9;
}

#chessCanvas {
    cursor: pointer;
}

#freeList {
    position: relative;
    right: 6%;
}

#roomList {
    position: relative;
    left: 13%;
}

.player, .room {
    display: inline-block;
    padding: 10px 20px;
    width: 200px;
    background-color: #EE82EE;
    cursor: pointer;
    color: #fff;
    border-radius: 5px;
}

.btn-challenge, .btn-watch {
    width: 150px;
}

.game-panel, .watch-panel {
    display: none;
}

#turn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #EE82EE;
    color: #fff;
    border-radius: 5px;
}

#chessColor {
    display: inline-block;
    padding: 10px 20px;
    background-color: #337AB7;
    color: #fff;
    border-radius: 5px;
}

.roomId, .watchCount, #wait {
    color: #00bcd4;
}
